package com.star.service.impl;

import com.star.dao.BookDao;
import com.star.dao.impl.BookDaoImpl;
import com.star.service.BookService;


/**
 * @BelongsProject: study_-spring
 * @BelongsPackage: com.star.service.impl
 * @Author: lanxx
 * @CreateTime: 2025-06-24  11:00
 * @Description: TODO
 * @Version: 1.0
 */
public class BookServiceImpl implements BookService {

    //private BookDao bookDao = new BookDaoImpl();
    private BookDao bookDao ;

    public void setBookDao(BookDao bookDao) {

        System.out.println("setBookDao()方法被调用了...");
        this.bookDao = bookDao;
    }

    @Override
    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }
}
